package com.qingfeng.client.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qingfeng.base.model.Page;
import com.qingfeng.client.DO.AfterSellQueryDo;
import com.qingfeng.client.VO.AfterSellQueryVo;
import com.qingfeng.client.VO.StockVo;
import com.qingfeng.client.bean.AfterSell;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @author zhangyuefei
 * @version 1.0
 * @date 2020/1/6 10:16 上午
 */
public interface AfterSellMapper extends BaseMapper<AfterSell> {
    boolean changeRefundStat(@Param("code") String code, @Param("stat") int stat,@Param("finishTime") Long finishTime);

    AfterSell selectOneByCode(@Param("code")String code);

    Map<String, Object> getRefundInfo(@Param("code") String code);

    IPage<AfterSellQueryDo> getPageList(Page page, @Param("vo") AfterSellQueryVo aftersellBean, @Param("storeId") Integer storeId);

     boolean updateOrderGoodsStatByCode(@Param("code") String code,@Param("stat") int stat);

    StockVo agree1(@Param("code") String code);

}
